﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureGames.Model
{
    /// <summary>
    /// A game of a GameDefinition
    /// </suC:\Users\chilberto\Documents\Visual Studio 2010\Projects\AzureGames\AzureGames.Data.InMemory\GameResources\Amazons\1\class.jsmmary>
    public class Board : BaseDataObject
    {
        public const int Created = 0;
        public const int Active = 1;
        public const int Completed = 2;
        public const int Cancelled = 3;

        public Guid ID { get; set; }
        public int GameDefinitionID { get; set; }
        public Int64 Value { get; set; }
        public List<string> PlayerIDs { get; set; }

        // TODO: enums are not supported with JSON serialisation
        //       for now pass as a int
        public int State { get; set; }

        // TODO: dictionary is not supported with JSON serialisation
        //       for now pass the properties as a list as the order is
        //       maintained.   
        // public Dictionary<string, string> Properties { get; set; }
        public List<string> Properties { get; set; }

    }
}
